﻿<UserControl x:Class="FM.流媒体播放.Views.播放视图"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:viewModels="clr-namespace:FM.流媒体播放.ViewModels"
             FontSize="24"
             d:DataContext="{d:DesignInstance Type=viewModels:播放视图ViewModel}"
             d:DesignHeight="220"
             d:DesignWidth="400"
             mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />

        </Grid.RowDefinitions>
        <MediaElement Name="mediaElement" />
        <DockPanel Grid.Row="1" Margin="0,5">
            <TextBlock Text="播放地址:" />
            <TextBox Text="{Binding 播放地址}" />
        </DockPanel>
        <ProgressBar Grid.Row="2"
                     Height="10"
                     Maximum="1"
                     SmallChange="0.01"
                     Value="{Binding 左电平}" />
        <ProgressBar Grid.Row="3"
                     Height="10"
                     Maximum="1"
                     SmallChange="0.01"
                     Value="{Binding 右电平}" />

        <DockPanel Grid.Row="4" Margin="0,5">
            <TextBlock Margin="2" Text="播放器状态:" />
            <TextBlock Margin="2" Text="{Binding 播放状态}" />

        </DockPanel>
        <DockPanel Grid.Row="5" Margin="0,5">
            <TextBlock Margin="2" Text="已重试:" />
            <TextBlock Margin="2" Text="{Binding 已重试次数}" />
        </DockPanel>
        <Grid Grid.Row="6" Margin="0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />

            </Grid.ColumnDefinitions>
            <Button Width="75"
                    Height="50"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Content="播放" />

            <Button Grid.Column="1"
                    Width="75"
                    Height="50"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Content="停止" />
            <Button Grid.Column="2"
                    Width="75"
                    Height="50"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Content="退出" />


        </Grid>

    </Grid>
</UserControl>
